package com.hlyx.gamebox;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

import android.widget.AdapterView;
import android.widget.GridView;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.hlyx.gamebox.databinding.FragmentFirstBinding;

import java.util.ArrayList;
import java.util.List;

public class FirstFragment extends Fragment {

    private FragmentFirstBinding binding;

    @Override
    public View onCreateView(
            LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState
    ) {

        binding = FragmentFirstBinding.inflate(inflater, container, false);
        return binding.getRoot();

    }

    public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        String jsonData = "[\n" +
                "\t{\n" +
                "\t\t\"title\": \"Equilibrium\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/equilibrium.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/equilibrium/\",\n" +
                "\t\t\"description\": \"Place all boxes on the platform and reach the goal. Don't let any box fall!\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Skill,Platformer\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"equilibrium\",\n" +
                "\t\t\"pubDate\": \"Thu, 14 Oct 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Neonman\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/neonman.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/neonman/\",\n" +
                "\t\t\"description\": \"Avoid all red neons by jumping.\",\n" +
                "\t\t\"category\": \"adventures\",\n" +
                "\t\t\"tags\": \"Avoid,Endless Runner,Skill\",\n" +
                "\t\t\"width\": \"854\",\n" +
                "\t\t\"height\": \"480\",\n" +
                "\t\t\"guid\": \"neonman\",\n" +
                "\t\t\"pubDate\": \"Tue, 12 Oct 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Dodge\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/dodge.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/dodge/\",\n" +
                "\t\t\"description\": \"Touch And Drag the red ball to dodge enemy and get stars.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Avoid,Skill,Highscore\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"854\",\n" +
                "\t\t\"guid\": \"dodge\",\n" +
                "\t\t\"pubDate\": \"Sun, 10 Oct 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Mahjong Solitaire\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/mahjong-solitaire.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/mahjong-solitaire/\",\n" +
                "\t\t\"description\": \"Play the classic Mahjong solitaire in your browser, with four maps and three different styles of tiles.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Brain,Fun,Family,Educational,Mahjong\",\n" +
                "\t\t\"width\": \"1000\",\n" +
                "\t\t\"height\": \"600\",\n" +
                "\t\t\"guid\": \"mahjong-solitaire\",\n" +
                "\t\t\"pubDate\": \"Wed, 06 Oct 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Solitaire\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/solitaire.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/solitaire/\",\n" +
                "\t\t\"description\": \"The classic Klondike Solitaire now in your own webpage, and your phone\\u2026 and your tablet.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Card,Fun\",\n" +
                "\t\t\"width\": \"800\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"solitaire\",\n" +
                "\t\t\"pubDate\": \"Mon, 04 Oct 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Penalty Mania\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/penalty-mania.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/penalty-mania/\",\n" +
                "\t\t\"description\": \"You have 3 balls and have to score as much as possible. You will lose one ball whenever you miss your shot or it is caught by the goalkeeper.\",\n" +
                "\t\t\"category\": \"shooters\",\n" +
                "\t\t\"tags\": \"Football,Skill,Sports,Boys\",\n" +
                "\t\t\"width\": \"512\",\n" +
                "\t\t\"height\": \"384\",\n" +
                "\t\t\"guid\": \"penalty-mania\",\n" +
                "\t\t\"pubDate\": \"Sat, 02 Oct 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Christmas Furious\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/christmas-furious.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/christmas-furious/\",\n" +
                "\t\t\"description\": \"This year Christmas will be furious! Many balloons invaded the North Pole, and Santa has to run to catch the gifts. Help Santa to dodge the balloons and ending with the highest number of gifts. You can pass all the levels? \",\n" +
                "\t\t\"category\": \"adventures\",\n" +
                "\t\t\"tags\": \"Skill,Christmas,Avoid,Driving\",\n" +
                "\t\t\"width\": \"860\",\n" +
                "\t\t\"height\": \"480\",\n" +
                "\t\t\"guid\": \"christmas-furious\",\n" +
                "\t\t\"pubDate\": \"Thu, 30 Sep 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Penty\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/penty.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/penty/\",\n" +
                "\t\t\"description\": \"Connect all adjacent gems of the same color to get high score.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Timing,Matching,Highscore,Skill,Educational,Family,Fun\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"854\",\n" +
                "\t\t\"guid\": \"penty\",\n" +
                "\t\t\"pubDate\": \"Tue, 28 Sep 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Klondike Solitaire\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/klondike-solitaire.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/klondike-solitaire/\",\n" +
                "\t\t\"description\": \"If you enjoy card games, then this classic Klondike Solitaire card game is the right choice for you! Try your luck right now with one of the most-played card games around. Much fun!\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Card\",\n" +
                "\t\t\"width\": \"1136\",\n" +
                "\t\t\"height\": \"640\",\n" +
                "\t\t\"guid\": \"klondike-solitaire\",\n" +
                "\t\t\"pubDate\": \"Sun, 26 Sep 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Santa Goes Home\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/santa-goes-home.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/santa-goes-home/\",\n" +
                "\t\t\"description\": \"Christmas season is over and Santa got little bit dizzy. Lead him home by touching screen and avoiding garbage.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Highscore,Christmas,Avoid,Skill\",\n" +
                "\t\t\"width\": \"800\",\n" +
                "\t\t\"height\": \"480\",\n" +
                "\t\t\"guid\": \"santa-goes-home\",\n" +
                "\t\t\"pubDate\": \"Fri, 24 Sep 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Hill Climb Racing\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/hill-climb-racing.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/hill-climb-racing/\",\n" +
                "\t\t\"description\": \"Drive the car to the end of the hill.\",\n" +
                "\t\t\"category\": \"racing\",\n" +
                "\t\t\"tags\": \"Cars,Skill\",\n" +
                "\t\t\"width\": \"854\",\n" +
                "\t\t\"height\": \"480\",\n" +
                "\t\t\"guid\": \"hill-climb-racing\",\n" +
                "\t\t\"pubDate\": \"Wed, 22 Sep 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Minion Rush\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/minion-rush.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/minion-rush/\",\n" +
                "\t\t\"description\": \"Tap left or right, or click the keyboard arrows to run as Minion to collect bananas, horses and ice cream but avoid obstacles.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Kids,Endless Runner,Cartoon,Avoid\",\n" +
                "\t\t\"width\": \"320\",\n" +
                "\t\t\"height\": \"480\",\n" +
                "\t\t\"guid\": \"minion-rush\",\n" +
                "\t\t\"pubDate\": \"Mon, 20 Sep 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Easter Memory\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/easter-memory.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/easter-memory/\",\n" +
                "\t\t\"description\": \"Match all identical cards before time runs out!\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Timing,Matching,Kids,Fun,Educational,Card,Brain\",\n" +
                "\t\t\"width\": \"1136\",\n" +
                "\t\t\"height\": \"640\",\n" +
                "\t\t\"guid\": \"easter-memory\",\n" +
                "\t\t\"pubDate\": \"Tue, 10 Aug 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Quiz Goose Math\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/quiz-goose-math.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/quiz-goose-math/\",\n" +
                "\t\t\"description\": \"Roll the dice to step into the boxes. If you stop on a quiz box will pop up the question window where you must select the right answer, if so, you will be rewarded by advancing some more positions, otherwise, you will recede.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Kids\",\n" +
                "\t\t\"width\": \"1024\",\n" +
                "\t\t\"height\": \"768\",\n" +
                "\t\t\"guid\": \"quiz-goose-math\",\n" +
                "\t\t\"pubDate\": \"Sun, 08 Aug 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Spider Solitaire\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/spider-solitaire.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/spider-solitaire/\",\n" +
                "\t\t\"description\": \"The game is a stylish version of the classic Spider Solitaire, it's playable on your android mobile, iPhone and iPad, enjoy!\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Card\",\n" +
                "\t\t\"width\": \"1136\",\n" +
                "\t\t\"height\": \"640\",\n" +
                "\t\t\"guid\": \"spider-solitaire\",\n" +
                "\t\t\"pubDate\": \"Fri, 06 Aug 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Animal Connect\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/animal-connect.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/animal-connect/\",\n" +
                "\t\t\"description\": \"This is a fantastic puzzle game where you need to connect 2 identical items via 3 or less than 3 straight lines. Can you beat 99% of players worldwide?\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Matching,Highscore,Fun,Brain,Animals,Timing\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"animal-connect\",\n" +
                "\t\t\"pubDate\": \"Wed, 04 Aug 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Crystal Ball Zuma\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/crystal-ball-zuma.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/crystal-ball-zuma/\",\n" +
                "\t\t\"description\": \"A new and fun zuma game! Shoot the crystal ball to match 3 or more balls of the same color to eliminate balls. Choose your target position quickly and carefully. That way you'll get the most points and have the best chance of completing each level. Eliminate all balls, before any of the balls falling into the hole. It's playable on your android mobile, iPhone and iPad, enjoy!\",\n" +
                "\t\t\"category\": \"shooters\",\n" +
                "\t\t\"tags\": \"Highscore,Avoid,Bubble Shooter,Fun,Matching,Puzzle,Skill\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"crystal-ball-zuma\",\n" +
                "\t\t\"pubDate\": \"Mon, 02 Aug 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Freecell Solitaire\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/freecell-solitaire.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/freecell-solitaire/\",\n" +
                "\t\t\"description\": \"The game is a new version of the freecell solitaire, it's playable on your android mobile, iPhone and iPad, enjoy!\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Fun,Card,Boys\",\n" +
                "\t\t\"width\": \"1136\",\n" +
                "\t\t\"height\": \"640\",\n" +
                "\t\t\"guid\": \"freecell-solitaire\",\n" +
                "\t\t\"pubDate\": \"Wed, 28 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Jump On Jupiter\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/jump-on-jupiter.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/jump-on-jupiter/\",\n" +
                "\t\t\"description\": \"Tap to go to the ground and let the spaceman jump up again.  But be careful of the obstacles on the way. You get scores by passing through the portals.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Highscore,Avoid\",\n" +
                "\t\t\"width\": \"854\",\n" +
                "\t\t\"height\": \"480\",\n" +
                "\t\t\"guid\": \"jump-on-jupiter\",\n" +
                "\t\t\"pubDate\": \"Mon, 26 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Spring Panda\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/spring-panda.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/spring-panda/\",\n" +
                "\t\t\"description\": \"Spring Panda is a simple distance game for mobile and other touch devices. Touch and hold the screen to launch the panda and hopefully you will land on a platform. How far can you get?\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Highscore,Animals\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"854\",\n" +
                "\t\t\"guid\": \"spring-panda\",\n" +
                "\t\t\"pubDate\": \"Sat, 24 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Cowboy Shoot Zombies\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/cowboy-shoot-zombies.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/cowboy-shoot-zombies/\",\n" +
                "\t\t\"description\": \"A cool 2d game where you need to kill all the zombies in the way.\",\n" +
                "\t\t\"category\": \"shooters\",\n" +
                "\t\t\"tags\": \"Highscore,Boys,Adventure,Action,Zombie\",\n" +
                "\t\t\"width\": \"1260\",\n" +
                "\t\t\"height\": \"720\",\n" +
                "\t\t\"guid\": \"cowboy-shoot-zombies\",\n" +
                "\t\t\"pubDate\": \"Thu, 22 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Witch Ball\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/witch-ball.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/witch-ball/\",\n" +
                "\t\t\"description\": \"Your goal is to make all the white balls turn red by clicking the yellow balls. When the red balls touch the white balls, white balls will turn red. But, the number of the yellow balls you can click is limited. So, choose the right balls to click is very important! Good luck!\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Skill,Matching,Fun,Bubble Shooter,Brain\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"witch-ball\",\n" +
                "\t\t\"pubDate\": \"Tue, 20 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Chameleon\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/chameleon.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/chameleon/\",\n" +
                "\t\t\"description\": \"Eat insects to earn points. When the chameleon eats insect it changes color. how much points can you get?\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Highscore,Animals,Kids\",\n" +
                "\t\t\"width\": \"854\",\n" +
                "\t\t\"height\": \"480\",\n" +
                "\t\t\"guid\": \"chameleon\",\n" +
                "\t\t\"pubDate\": \"Sun, 18 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Circle Rush\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/circle-rush.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/circle-rush/\",\n" +
                "\t\t\"description\": \"This is a html5 version of the popular mobile game Circle Rush. It is a beautiful, simple and fun game that will make you play for hours. Tap the screen to control your ball, dodge those red balls and destroy your own highscore.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Avoid\",\n" +
                "\t\t\"width\": \"640\",\n" +
                "\t\t\"height\": \"960\",\n" +
                "\t\t\"guid\": \"circle-rush\",\n" +
                "\t\t\"pubDate\": \"Fri, 16 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Fighting Aircraft Battle\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/fighting-aircraft-battle.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/fighting-aircraft-battle/\",\n" +
                "\t\t\"description\": \"Fighting Aircraft Battle is a single touch 2d battle game you have to shoot all the incoming aircraft enemies and collect powers to use against them.\",\n" +
                "\t\t\"category\": \"shooters\",\n" +
                "\t\t\"tags\": \"Avoid,Highscore,Boys\",\n" +
                "\t\t\"width\": \"1260\",\n" +
                "\t\t\"height\": \"720\",\n" +
                "\t\t\"guid\": \"fighting-aircraft-battle\",\n" +
                "\t\t\"pubDate\": \"Wed, 14 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Beer Rush\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/beer-rush.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/beer-rush/\",\n" +
                "\t\t\"description\": \"The goal of the mobile game is to serve beers to customers who move towards you, the barman. If any customer reaches the end of the bar or a returning beer cup is not caught, you lose a life.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Action,Boys,Timing\",\n" +
                "\t\t\"width\": \"1136\",\n" +
                "\t\t\"height\": \"640\",\n" +
                "\t\t\"guid\": \"beer-rush\",\n" +
                "\t\t\"pubDate\": \"Mon, 12 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"zBall\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/zball.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/zball/\",\n" +
                "\t\t\"description\": \"Touch screen to change ball direction. Try to get high score and beat 99% of players worldwide!\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Highscore\",\n" +
                "\t\t\"width\": \"720\",\n" +
                "\t\t\"height\": \"1280\",\n" +
                "\t\t\"guid\": \"zball\",\n" +
                "\t\t\"pubDate\": \"Sat, 10 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Sweet Connect\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/sweet-connect.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/sweet-connect/\",\n" +
                "\t\t\"description\": \"Connect 2 identical food via 3 or less than 3 straight lines.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Timing,Matching,Highscore,Brain\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"sweet-connect\",\n" +
                "\t\t\"pubDate\": \"Thu, 08 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Jumper Frog\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/jumper-frog.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/jumper-frog/\",\n" +
                "\t\t\"description\": \"Jumper Frog is a classic traffic survival game inspired by Frogger. Guide 5 frogs from the bottom to the top into one of the 5 coves. Can you survive the deadly traffic?\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Boys,Avoid,Animals\",\n" +
                "\t\t\"width\": \"640\",\n" +
                "\t\t\"height\": \"1136\",\n" +
                "\t\t\"guid\": \"jumper-frog\",\n" +
                "\t\t\"pubDate\": \"Tue, 06 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Alien Galaxy War\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/alien-galaxy-war.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/alien-galaxy-war/\",\n" +
                "\t\t\"description\": \"Alien Galaxy War is a vertical shooter 2D game where you have to shoot all the incoming aliens spaceships and collect as much as star you can.\",\n" +
                "\t\t\"category\": \"shooters\",\n" +
                "\t\t\"tags\": \"Highscore,Boys,Avoid\",\n" +
                "\t\t\"width\": \"768\",\n" +
                "\t\t\"height\": \"1024\",\n" +
                "\t\t\"guid\": \"alien-galaxy-war\",\n" +
                "\t\t\"pubDate\": \"Sun, 04 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Mr Jump\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/mr-jump.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/mr-jump/\",\n" +
                "\t\t\"description\": \"Test your skill and guide Mr. Jump on his adventurous journey.\",\n" +
                "\t\t\"category\": \"adventures\",\n" +
                "\t\t\"tags\": \"Skill,Boys,Avoid,Action\",\n" +
                "\t\t\"width\": \"854\",\n" +
                "\t\t\"height\": \"480\",\n" +
                "\t\t\"guid\": \"mr-jump\",\n" +
                "\t\t\"pubDate\": \"Fri, 02 Jul 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"UFO Run\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/ufo-run.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/ufo-run/\",\n" +
                "\t\t\"description\": \"Get the green alien to his spaceship in this fast-paced, side-scrolling distance game. Just tap on your mobile screen to make your little friend jump and run through the dark cave. Try to catch as much stars as possible and dodge dreadful spikes along the way. Much fun!\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Action,Avoid,Boys\",\n" +
                "\t\t\"width\": \"600\",\n" +
                "\t\t\"height\": \"428\",\n" +
                "\t\t\"guid\": \"ufo-run\",\n" +
                "\t\t\"pubDate\": \"Wed, 30 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Sumo Sushi Puzzle\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/sumo-sushi-puzzle.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/sumo-sushi-puzzle/\",\n" +
                "\t\t\"description\": \"Sumo Sushi Puzzle is a tricky puzzle game for tablets and other mobile devices. The hungry sumo needs more sushi. Can you help him fill up his tummy with sushi?\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Boys\",\n" +
                "\t\t\"width\": \"432\",\n" +
                "\t\t\"height\": \"640\",\n" +
                "\t\t\"guid\": \"sumo-sushi-puzzle\",\n" +
                "\t\t\"pubDate\": \"Mon, 28 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Wake The Santa\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/wake-the-santa.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/wake-the-santa/\",\n" +
                "\t\t\"description\": \"Wake The Santa is a funny puzzle game for IPad and other mobile devices. Destroy the blocks and drop the snowflake onto Santa to wake him up!\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Box2D,Boys,Kids,Christmas\",\n" +
                "\t\t\"width\": \"432\",\n" +
                "\t\t\"height\": \"640\",\n" +
                "\t\t\"guid\": \"wake-the-santa\",\n" +
                "\t\t\"pubDate\": \"Sat, 26 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Unhook The Bra\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/unhook-the-bra.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/unhook-the-bra/\",\n" +
                "\t\t\"description\": \"In this funny game, beauties are busy changing clothes to step on the stage. But they can't unhook their bras. Let's help them unhook the bra. They will be late. Act quickly.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Timing,Fun,Brain,Boys\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"unhook-the-bra\",\n" +
                "\t\t\"pubDate\": \"Thu, 24 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Spongebob Restaurant\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/spongebob-restaurant.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/spongebob-restaurant/\",\n" +
                "\t\t\"description\": \"Spongebob has his own restaurant now. Help him serve his hungry customers and earn money.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Kids,Cartoon,Boys\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"spongebob-restaurant\",\n" +
                "\t\t\"pubDate\": \"Tue, 22 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Whack My Phone\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/whack-my-phone.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/whack-my-phone/\",\n" +
                "\t\t\"description\": \"The classic game Whack My Phone is playable on mobile and pad now. This time you can destroy Iphone 5s, Iphone 6 and Iphone 6 plus, enjoy!\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Kids,Fun,Boys\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"whack-my-phone\",\n" +
                "\t\t\"pubDate\": \"Sun, 20 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Pou Jump Adventure\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/pou-jump-adventure.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/pou-jump-adventure/\",\n" +
                "\t\t\"description\": \"Pou starts a great adventure, he must jump on the platforms and try to get the high score. Mouse click to control or tap to control.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Kids,Highscore,Cartoon,Boys\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"pou-jump-adventure\",\n" +
                "\t\t\"pubDate\": \"Fri, 18 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Parking Puzzle\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/parking-puzzle.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/parking-puzzle/\",\n" +
                "\t\t\"description\": \"Drive each car to its own parking zone. Click on a car to make it cross the bridge and arrive at the empty zone. You cannot move a car that is not connected to the empty zone.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Highscore,Cars\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"parking-puzzle\",\n" +
                "\t\t\"pubDate\": \"Wed, 16 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Spect\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/spect.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/spect/\",\n" +
                "\t\t\"description\": \"On mobile or pad: tap to control. On PC: Mouse or WASD for move, Q for missiles, E for shield, press autoshooting for autoshooting. \",\n" +
                "\t\t\"category\": \"shooters\",\n" +
                "\t\t\"tags\": \"Highscore,Boys\",\n" +
                "\t\t\"width\": \"768\",\n" +
                "\t\t\"height\": \"1024\",\n" +
                "\t\t\"guid\": \"spect\",\n" +
                "\t\t\"pubDate\": \"Mon, 14 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Handless Millionaire\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/handless-millionaire.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/handless-millionaire/\",\n" +
                "\t\t\"description\": \"Risk your hands as you attempt to grab the dollar bill that is hanging on the other side of the guillotine. Quickly grab the cash and avoid losing your hand!\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Highscore,Fun,Boys\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"handless-millionaire\",\n" +
                "\t\t\"pubDate\": \"Sat, 12 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Hungry Frog\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/hungry-frog.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/hungry-frog/\",\n" +
                "\t\t\"description\": \"Catch the fly or electric catch you.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Kids,Highscore,Avoid,Animals\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"860\",\n" +
                "\t\t\"guid\": \"hungry-frog\",\n" +
                "\t\t\"pubDate\": \"Thu, 10 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"King of Gems\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/king-of-gems.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/king-of-gems/\",\n" +
                "\t\t\"description\": \"You need to match 3 or more objects by clicking on a group of 3 gems or more.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Timing,Matching,Highscore\",\n" +
                "\t\t\"width\": \"496\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"king-of-gems\",\n" +
                "\t\t\"pubDate\": \"Tue, 08 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Car Speed Booster\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/car-speed-booster.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/car-speed-booster/\",\n" +
                "\t\t\"description\": \"Car Speed Booster is a vertical runner game. Beware of other incoming cars and collect as many coins as you can. Drag the car to control.\",\n" +
                "\t\t\"category\": \"racing\",\n" +
                "\t\t\"tags\": \"Highscore,Cars,Avoid\",\n" +
                "\t\t\"width\": \"768\",\n" +
                "\t\t\"height\": \"1024\",\n" +
                "\t\t\"guid\": \"car-speed-booster\",\n" +
                "\t\t\"pubDate\": \"Sun, 06 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Burger Maker\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/burger-maker.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/burger-maker/\",\n" +
                "\t\t\"description\": \"Stack the perfect burger by following the order lists.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Timing\",\n" +
                "\t\t\"width\": \"1024\",\n" +
                "\t\t\"height\": \"768\",\n" +
                "\t\t\"guid\": \"burger-maker\",\n" +
                "\t\t\"pubDate\": \"Fri, 04 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Pyramid Run\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/pyramid-run.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/pyramid-run/\",\n" +
                "\t\t\"description\": \"Tap the screen to make the hero to jump and avoid the trap. Try to get high score and beat other players.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Highscore,Avoid,Action\",\n" +
                "\t\t\"width\": \"720\",\n" +
                "\t\t\"height\": \"1280\",\n" +
                "\t\t\"guid\": \"pyramid-run\",\n" +
                "\t\t\"pubDate\": \"Wed, 02 Jun 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Skater Rat\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/skater-rat.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/skater-rat/\",\n" +
                "\t\t\"description\": \"Your aim to accelerate or jump over the obstacles on the road and get the scores as possible as you can.\",\n" +
                "\t\t\"category\": \"sports\",\n" +
                "\t\t\"tags\": \"Avoid,Animals,Action\",\n" +
                "\t\t\"width\": \"1280\",\n" +
                "\t\t\"height\": \"720\",\n" +
                "\t\t\"guid\": \"skater-rat\",\n" +
                "\t\t\"pubDate\": \"Sun, 30 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Sasquash\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/sasquash.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/sasquash/\",\n" +
                "\t\t\"description\": \"Sasquash is based on the classic Totem Destroyer game. The Aim of the game is to destroy all the wooden blocks without the Sasquatch hitting the ground or falling off the world. Touch or use your mouse to destroy the blocks!\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Physics\",\n" +
                "\t\t\"width\": \"768\",\n" +
                "\t\t\"height\": \"1024\",\n" +
                "\t\t\"guid\": \"sasquash\",\n" +
                "\t\t\"pubDate\": \"Fri, 28 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Dora Yummy Cupcake\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/dora-yummy-cupcake.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/dora-yummy-cupcake/\",\n" +
                "\t\t\"description\": \"Help Dora while she uses her cooking and decoration skills to prepare yummy cupcakes.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Kids,Decorating,Cartoon\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"dora-yummy-cupcake\",\n" +
                "\t\t\"pubDate\": \"Wed, 26 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Ultimate Tic Tac Toe\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/ultimate-tic-tac-toe.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/ultimate-tic-tac-toe/\",\n" +
                "\t\t\"description\": \"Enjoy this classic game with the 3\\u00d73 scheme and two variant 5\\u00d75 and 7\\u00d77 where you have to place 4 marks instead of 3.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Kids,Fun,Boys\",\n" +
                "\t\t\"width\": \"1080\",\n" +
                "\t\t\"height\": \"1920\",\n" +
                "\t\t\"guid\": \"ultimate-tic-tac-toe\",\n" +
                "\t\t\"pubDate\": \"Mon, 24 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Infinity Space\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/infinity-space.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/infinity-space/\",\n" +
                "\t\t\"description\": \"Move the block and make it combine with other blocks. Be careful! Don't hit the rocks!\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Boys,Avoid\",\n" +
                "\t\t\"width\": \"870\",\n" +
                "\t\t\"height\": \"489\",\n" +
                "\t\t\"guid\": \"infinity-space\",\n" +
                "\t\t\"pubDate\": \"Sat, 22 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Brave Triangle\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/brave-triangle.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/brave-triangle/\",\n" +
                "\t\t\"description\": \"Help brave triangle to escape the maze! Be careful! Don't bump into obstacles!\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Highscore,Fun,Avoid\",\n" +
                "\t\t\"width\": \"275\",\n" +
                "\t\t\"height\": \"489\",\n" +
                "\t\t\"guid\": \"brave-triangle\",\n" +
                "\t\t\"pubDate\": \"Thu, 20 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Just Get 10\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/just-get-10.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/just-get-10/\",\n" +
                "\t\t\"description\": \"Tap the adjacent tiles with same number, and they will pop up. Tap again, they will merge in the position you tap. Try to get 10.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"600\",\n" +
                "\t\t\"guid\": \"just-get-10\",\n" +
                "\t\t\"pubDate\": \"Tue, 18 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"School Boy Warrior\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/school-boy-warrior.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/school-boy-warrior/\",\n" +
                "\t\t\"description\": \"School Boy Warrior is a 2d warrior runner where you are the school warrior and you need to kill monsters with your sword. Click on jump button to jump and sword button to attack monsters.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Boys,Action\",\n" +
                "\t\t\"width\": \"1260\",\n" +
                "\t\t\"height\": \"720\",\n" +
                "\t\t\"guid\": \"school-boy-warrior\",\n" +
                "\t\t\"pubDate\": \"Sun, 16 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"aa\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/game-aa.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/game-aa/\",\n" +
                "\t\t\"description\": \"Shoot long pins into a rotating ball without the pins hitting each other.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Avoid\",\n" +
                "\t\t\"width\": \"320\",\n" +
                "\t\t\"height\": \"480\",\n" +
                "\t\t\"guid\": \"game-aa\",\n" +
                "\t\t\"pubDate\": \"Fri, 14 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Solve Math\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/solve-math.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/solve-math/\",\n" +
                "\t\t\"description\": \"In the game you have to solve the equals answer by given random numbers and mathematical symbols.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Timing,Brain\",\n" +
                "\t\t\"width\": \"1024\",\n" +
                "\t\t\"height\": \"768\",\n" +
                "\t\t\"guid\": \"solve-math\",\n" +
                "\t\t\"pubDate\": \"Wed, 12 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Math Plus\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/math-plus.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/math-plus/\",\n" +
                "\t\t\"description\": \"Choose the right stage for you, then try to do a quick addition to find the target number, do that as soon as you can before time ends.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Timing,Brain\",\n" +
                "\t\t\"width\": \"600\",\n" +
                "\t\t\"height\": \"840\",\n" +
                "\t\t\"guid\": \"math-plus\",\n" +
                "\t\t\"pubDate\": \"Mon, 10 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Tiny Rifles\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/tiny-rifles.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/tiny-rifles/\",\n" +
                "\t\t\"description\": \"You are the army commander and the enemy is in front of you. Create troops with different guns and kill all enemies.\",\n" +
                "\t\t\"category\": \"shooters\",\n" +
                "\t\t\"tags\": \"Strategy,Boys\",\n" +
                "\t\t\"width\": \"1900\",\n" +
                "\t\t\"height\": \"1250\",\n" +
                "\t\t\"guid\": \"tiny-rifles\",\n" +
                "\t\t\"pubDate\": \"Sat, 08 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Dangerous\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/dangerous.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/dangerous/\",\n" +
                "\t\t\"description\": \"Tap screen to jump to avoid other cars and collect gems.\",\n" +
                "\t\t\"category\": \"racing\",\n" +
                "\t\t\"tags\": \"Highscore,Cars,Avoid\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"854\",\n" +
                "\t\t\"guid\": \"dangerous\",\n" +
                "\t\t\"pubDate\": \"Thu, 06 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Boxes Physic\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/boxes-physic.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/boxes-physic/\",\n" +
                "\t\t\"description\": \"Remove all green boxes off the screen! You can tap on box to split them into 4 part smaller.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Skill,Physics,Fun\",\n" +
                "\t\t\"width\": \"854\",\n" +
                "\t\t\"height\": \"480\",\n" +
                "\t\t\"guid\": \"boxes-physic\",\n" +
                "\t\t\"pubDate\": \"Tue, 04 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Puzzle Animal Mania\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/puzzle-animal-mania.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/puzzle-animal-mania/\",\n" +
                "\t\t\"description\": \"Move all animal boxes to the gray place.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Fun,Brain,Animals\",\n" +
                "\t\t\"width\": \"275\",\n" +
                "\t\t\"height\": \"489\",\n" +
                "\t\t\"guid\": \"puzzle-animal-mania\",\n" +
                "\t\t\"pubDate\": \"Sun, 02 May 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Pin Ball\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/pin-ball.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/pin-ball/\",\n" +
                "\t\t\"description\": \"Tap screen left or right make the ball jump, get the gem and get high score!\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Highscore,Fun\",\n" +
                "\t\t\"width\": \"432\",\n" +
                "\t\t\"height\": \"768\",\n" +
                "\t\t\"guid\": \"pin-ball\",\n" +
                "\t\t\"pubDate\": \"Fri, 30 Apr 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Planet Explorer\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/planet-explorer.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/planet-explorer/\",\n" +
                "\t\t\"description\": \"Touch screen to travel between planets.\",\n" +
                "\t\t\"category\": \"adventures\",\n" +
                "\t\t\"tags\": \"Timing,Simulation,Highscore,Boys\",\n" +
                "\t\t\"width\": \"275\",\n" +
                "\t\t\"height\": \"489\",\n" +
                "\t\t\"guid\": \"planet-explorer\",\n" +
                "\t\t\"pubDate\": \"Wed, 28 Apr 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Painting Road\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/painting-road.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/painting-road/\",\n" +
                "\t\t\"description\": \"Swipe your finger to paint the road, but not to drop!\",\n" +
                "\t\t\"category\": \"adventures\",\n" +
                "\t\t\"tags\": \"Painting,Highscore,Endless Runner,Avoid\",\n" +
                "\t\t\"width\": \"869\",\n" +
                "\t\t\"height\": \"489\",\n" +
                "\t\t\"guid\": \"painting-road\",\n" +
                "\t\t\"pubDate\": \"Mon, 26 Apr 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Circle Pong\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/circle-pong.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/circle-pong/\",\n" +
                "\t\t\"description\": \"Keep the ball bouncing inside the circle. Click buttons or press right and left arrows on keyboard to control.\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Highscore\",\n" +
                "\t\t\"width\": \"275\",\n" +
                "\t\t\"height\": \"489\",\n" +
                "\t\t\"guid\": \"circle-pong\",\n" +
                "\t\t\"pubDate\": \"Sat, 24 Apr 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Bouncing Dot\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/bouncing-dot.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/bouncing-dot/\",\n" +
                "\t\t\"description\": \"Tap to rotate the hexagon to the right color before the ball lands. How high can your score gets?\",\n" +
                "\t\t\"category\": \"puzzles\",\n" +
                "\t\t\"tags\": \"Skill,Matching,Highscore,Fun\",\n" +
                "\t\t\"width\": \"275\",\n" +
                "\t\t\"height\": \"489\",\n" +
                "\t\t\"guid\": \"bouncing-dot\",\n" +
                "\t\t\"pubDate\": \"Thu, 22 Apr 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Zombie Uprising\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/zombie-uprising.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/zombie-uprising/\",\n" +
                "\t\t\"description\": \"Tap zombies to kill them.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Zombie,Highscore\",\n" +
                "\t\t\"width\": \"720\",\n" +
                "\t\t\"height\": \"1280\",\n" +
                "\t\t\"guid\": \"zombie-uprising\",\n" +
                "\t\t\"pubDate\": \"Tue, 20 Apr 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Chase Racing Cars\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/chase-racing-cars.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/chase-racing-cars/\",\n" +
                "\t\t\"description\": \"Beware of other cars and collect as much as coin you can.\",\n" +
                "\t\t\"category\": \"racing\",\n" +
                "\t\t\"tags\": \"Highscore,Cars,Avoid\",\n" +
                "\t\t\"width\": \"768\",\n" +
                "\t\t\"height\": \"1024\",\n" +
                "\t\t\"guid\": \"chase-racing-cars\",\n" +
                "\t\t\"pubDate\": \"Sun, 18 Apr 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Kids Coloring book\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/kids-coloring-book.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/kids-coloring-book/\",\n" +
                "\t\t\"description\": \"Choose one picture and paint with beautiful colors.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Painting,Kids,Decorating\",\n" +
                "\t\t\"width\": \"1440\",\n" +
                "\t\t\"height\": \"960\",\n" +
                "\t\t\"guid\": \"kids-coloring-book\",\n" +
                "\t\t\"pubDate\": \"Fri, 16 Apr 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Jumper Pou\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/jumper-pou.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/jumper-pou/\",\n" +
                "\t\t\"description\": \"Pou are jumping on the platforms and trying to get the high score, please help him.\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Kids,Highscore\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"800\",\n" +
                "\t\t\"guid\": \"jumper-pou\",\n" +
                "\t\t\"pubDate\": \"Wed, 14 Apr 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Falling Boxes\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/falling-boxes.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/falling-boxes/\",\n" +
                "\t\t\"description\": \"Tap anywhere to move the boxes to avoid falling ones. Keep calm and get the best score! \",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Highscore,Avoid\",\n" +
                "\t\t\"width\": \"720\",\n" +
                "\t\t\"height\": \"1280\",\n" +
                "\t\t\"guid\": \"falling-boxes\",\n" +
                "\t\t\"pubDate\": \"Mon, 12 Apr 21 04:24:23 -0500\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"title\": \"Bable\",\n" +
                "\t\t\"thumb\": \"https://s.h5games.online/images/bable.jpg\",\n" +
                "\t\t\"link\": \"https://g.shtoss.com/bable/\",\n" +
                "\t\t\"description\": \"Tap screen to build the tower and get high score!\",\n" +
                "\t\t\"category\": \"other\",\n" +
                "\t\t\"tags\": \"Skill,Highscore\",\n" +
                "\t\t\"width\": \"480\",\n" +
                "\t\t\"height\": \"854\",\n" +
                "\t\t\"guid\": \"bable\",\n" +
                "\t\t\"pubDate\": \"Sat, 10 Apr 21 04:24:23 -0500\"\n" +
                "\t}\n" +
                "]";

        ArrayList<GameItemModel> gameList = new Gson().fromJson(jsonData, new TypeToken<List<GameItemModel>>() {
        }.getType());

        GridView gridView = binding.gameList;
//        ArrayList<GameItemModel> gameItemModels = new ArrayList<>();
//        gameItemModels.add(new GameItemModel("https://s.h5games.online/images/equilibrium.jpg", "Equilibrium"));

        System.out.println("title is " + gameList.get(0).getTitle());
        GameGridAdapter gameGridAdapter = new GameGridAdapter(FirstFragment.this.getContext(), gameList);
        gridView.setAdapter(gameGridAdapter);
        gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                System.out.println("position is " + position);
                Intent intent =new Intent(FirstFragment.this.getActivity(),WebActivity.class);
                intent.putExtra("url", gameList.get(position).getLink());
                startActivity(intent);//启动Activity
            }
        });

//        binding.recentPlay
//        binding.gameList
//        binding.buttonFirst.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                NavHostFragment.findNavController(FirstFragment.this)
//                        .navigate(R.id.action_FirstFragment_to_SecondFragment);
//            }
//        });
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        binding = null;
    }

}